package day07.test01;

public class Test01 {
	public static void main(String[] args) {
		Market market = new Market();
		Person p = new Person();
		p.name = "小明";
		p.buyDogs(market);
		for (int i = 0; i < p.dogs.length; i++) {
			Dog d = p.dogs[i];
			System.out.println(d.name);
		}
	}
}
